package com.xtt.exceptionTest;

public class TestThrowException {
	public static void main(String[] args){
		TestThrowException e = new TestThrowException();
		try {
			e.test3();
		} catch (Exception e1) {
			e1.printStackTrace();
		}
	}
	
	public void test1() {
		
	}
	
	public void test2() {
		
	}
	
	public void test3() throws Exception{
		try {
			test4();
		} catch (Exception e) {
			SysException se = new SysException("3");
			se.initCause(e);
			throw se;
		}
	}
	
	public void test4() throws AppException {
		throw new AppException("4");
	}
}
